(function($){
	$.fn.UpScroll = function(Objs){
		var defaults = {
			row_h:130,
			visible_n:3,
			Interval:4000,
			bun:true,
			autoplay:true
		}
		var Objs = $.extend(defaults,Objs);
		this.each(function(){
			var that=$(this);
			var star=0,speed=1,count,time,jqul,jqli;
			jqul=$(that).find("ul");
			jqli=$(jqul).find("li");
			count=$(jqli).length;
			function bric(){
			star++;
			if(count-star<Objs.visible_n) star=0;
			if(star<0) star=0;
			speed=star*-Objs.row_h;
			$(jqul).stop(true,false).animate({top:speed+"px"},300);
			}
			
			function autoplay(){time=setInterval(bric,Objs.Interval);}
			if(Objs.autoplay==true){autoplay();}
			$(that).find(".lbun").bind({
				click:function(){
					clearInterval(time);
					bric();
					if(Objs.autoplay==true){autoplay();}
					return false;
					}});
			$(that).find(".rbun").bind({
				click:function(){
					clearInterval(time);
					star=star-2;
					bric();
					if(Objs.autoplay==true){autoplay();}
					return false;
					}});
		});
	};
})(jQuery);